package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    private ObjectId id; //主键
    private String soundUrl; //语音地址
    private Long sid; //语音id
    private Long userId; //发送者
    private Long receiveUserId; //接受方
    private Boolean received; //是否被接受
    private Long created; //发送时间
    private String text; //文字描述
}
